import axios from "axios";
import {message} from "antd";

const sytRequest = axios.create({
    baseURL:"/syt"
})

sytRequest.interceptors.response.use(res=>{
    if(res.data.code === 200)
    return res.data;
    message.error(res.data.message);
    return new Promise(()=>{});
})
export default sytRequest;